//
//  ToolInputView.h
//  BaseAPP
//
//  Created by Evisu on 17/7/14.
//  Copyright © 2017年 evisum. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ShareScrollView.h"

/**
 *  输入类型
 */
typedef enum{
    InputTypeText = 0,//文字
    InputTypeVoice,   //语音
    InputTypeEmotion
}InputType;

@protocol ToolInputViewDelegate <NSObject>

@optional

/**
 *  点击发送按钮
 *
 *  @param text 发送的文字
 */
- (void)toolInputViewDidClickedSend:(NSString *)text;

/**
 *  监听textView正在编辑
 */
- (void)toolInputViewEditing;

/**
 *  点击语音按钮
 */
- (void)toolInputViewDidClickedVoice:(UIButton *)btn;

/**
 *  点击表情按钮
 */
- (void)toolInputViewDidClickedEmotion:(UIButton *)btn;

/**
 *  点击加号按钮
 */
- (void)toolInputViewDidClickedMore:(UIButton *)btn;

@end

@interface ToolInputView : UIView

//语音按钮
@property (nonatomic, strong)UIButton *btnVoice;
@property (nonatomic, assign)int inputType;

//输入框
@property (nonatomic, strong)UITextView *tvInputView;
@property (nonatomic, strong)UIButton *btnSpeaking;

//表情按钮
@property (nonatomic, strong)UIButton *btnEmotion;

//加号按钮
@property (nonatomic, strong)UIButton *btnMore;

//底部View高度
@property (nonatomic, assign)CGFloat tabViewHeight;
@property (nonatomic, strong)UIView *tabView;

//照片、拍摄、收藏扩展View
@property (nonatomic, strong)ShareScrollView *shareView;

@property (nonatomic, assign)id <ToolInputViewDelegate>delegate;

/**
 *  发送文字消息成功后，textView变回原来的高度
 */
- (void)showOriginalTextView;

/**
 *  隐藏底部扩展View
 */
- (void)hideTabView;

@end
